#include "QVideoSourceDemoKinectApplication.hpp"
#include <btl/extra/VideoSource/VideoSourceKinect.hpp>
#include <boost/program_options.hpp>
#include <iostream>

int main ( int argc, char** argv )
{
    try
    {
        //worked for usb logitech camera
        //btl::extra::VideoSource* pVideoSource = new btl::extra::VideoSourceV4L2 ( std::string ( "/dev/video0" ).c_str() );
        btl::extra::VideoSourceKinect* pVideoSource = new btl::extra::VideoSourceKinect;

        QVideoSourceDemoApplication app ( argc, argv, pVideoSource );
        return app.exec();
    }
    catch ( btl::extra::VideoSourceKinect::Exception& e_ )
    {
        std::cout << e_.what() << std::endl;
    }
}
